import {http} from '@/utils/http'

enum Api {
    updatePhraseLabel = '/chat-phrase-label/update',
    getPhraseLabelList = '/chat-phrase-label/page',
    getPhraseLabel = '/chat-phrase-label/get/',
    deletePhraseLabel = '/chat-phrase-label/delete/',
    addPhraseLabel = '/chat-phrase-label/add',
}

/** 常用语标签*/
// 常用语标签分页列表
export function getPhraseLabelList(data:any) {
    return http.post<any>(Api.getPhraseLabelList, data)
}
// 添加常用语标签
export function addPhraseLabel(data:any) {
    return http.post<any>(Api.addPhraseLabel,data)
}
// 常用语标签详情
export function getPhraseLabel(id:string|number) {
    return http.post<any>(Api.getPhraseLabel+id)
}
// 修改常用语标签
export function updatePhraseLabel(data:any) {
    return http.post<any>(Api.updatePhraseLabel,data)
}
// 删除常用语标签
export function deletePhraseLabel(id:string|number) {
    return http.post<any>(Api.deletePhraseLabel+id)
}














